//
//  FirstSmallDetailModel.m
//  BTRIP
//
//  Created by dllo on 15/11/14.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "FirstSmallDetailModel.h"
#import "FirstSmallerDetailModel.h"
@implementation FirstSmallDetailModel
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"nodes"]) {
        NSArray *array = (NSArray *)value;
        NSMutableArray *nodesArray = [NSMutableArray array];
        for (NSDictionary *dic in array) {
            FirstSmallerDetailModel *firstSmaller = [[FirstSmallerDetailModel alloc]init];
            [firstSmaller setValuesForKeysWithDictionary:dic];
            [nodesArray addObject:firstSmaller];
            [firstSmaller release];
        }
        _nodes = [nodesArray copy];
    }else{
        [super setValue:value forKey:key];
    }
}
@end
